package cn.tedu.content.dao.persist.mapper.repository.impl;

import cn.tedu.content.dao.persist.mapper.CategoryMapper;
import cn.tedu.content.dao.persist.mapper.repository.CategoryRepository;
import cn.tedu.content.pojo.po.CategoryPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class CategoryRepositoryImpl implements CategoryRepository {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<CategoryPO> list() {
        return categoryMapper.list();
    }
}
